﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/ConsumerMaster.master" CodeFile="restaurant.aspx.cs" Inherits="Public_Restaurant" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Consumer_ContentPlaceHolder" Runat="Server">
<div class="restaurant_info" style="background-color:#aaaadd; width:100%">
<div style="width:80%; float:left">
<table>
<tr><td><asp:Label ID="name_label" runat="server" Font-Bold="true" Font-Size="Large"></asp:Label></td>
    <td><asp:Label ID="adver_label" runat="server"></asp:Label></td></tr>
<tr><td colspan="3"><asp:Label ID="server_areas" runat="server"></asp:Label></td></tr>
<tr><td><asp:Label ID="phone_label" Font-Italic="true" Font-Size="Large" ForeColor="green" runat="server"></asp:Label></td>
    <td><asp:Label ID="address_label" runat="server"></asp:Label></td>
    <td><asp:Label ID="open_time_label" runat="server"></asp:Label></td></tr>
<tr><td colspan="3"><asp:Label ID="delivery_policy_label" runat="server"></asp:Label></td>
</tr>
</table>
</div>
<div class="comment">
    <asp:HyperLink ID="comment_summary_hyperlink" runat="server" ToolTip="好|中|差" >&#91;
    <span class="good_span"></span>&#124;<span class="middle_span"></span>&#124;<span class="bad_span"></span>
    &#93;</asp:HyperLink>
    <input type="button" title="好|中|差-快评" value="评" class="comment"/>
    <div id="comment_action_restaurant" class="comment_action" style="background-color:Olive; width:auto; height:auto">
        <input type="radio" name="level_group" value="1" />好
        <input type="radio" name="level_group" value="2" />中
        <input type="radio" name="level_group" value="3" />差
        <input type="text" style="width:auto;" class="comment_text" />
    </div>
</div>
</div>

<div style="vertical-align:top; height:100%; overflow:auto;width:100%; float:left">
<asp:DataList ID="category_datalist" runat="server"  DataKeyField="Id" Width="100%" BorderWidth="1px" 
     BorderStyle="solid" HorizontalAlign="Left" RepeatDirection="Vertical" CellSpacing="10">
<ItemTemplate>
<table width="100%" style="text-align:left" cellspacing="8">
   <tr>
   <td><asp:Label ID="category_name_label" runat="server" Text='<%#Eval("Name")%>'></asp:Label></td>
   <td><asp:Label ID="category_description_label" runat="server" Text='<%#Eval("Description") %>' Visible="false"></asp:Label></td>
   </tr>
   
   <tr>
   <td colspan="2">
   <asp:DataList ID="categorydish_list" runat="server" CellSpacing="4" DataSource='<%#Eval("CategoryDishes") %>' OnDataBound="OnCategoryDishesDataBound"
     RepeatDirection="Horizontal" RepeatColumns="4">
   <ItemTemplate>
   <asp:HyperLink ID="categorydish_hyperlink" runat="server" Text='<%#Eval("Name")+"&#165;"+Eval("Price")%>' NavigateUrl='<%#"~/public/samedish-id="+Eval("DishId")+".aspx"%>'/>
   
</div>
   </ItemTemplate>
   </asp:DataList></td>
   </tr>
   
</table>
</ItemTemplate>
<ItemStyle BackColor="#aaaadd" ForeColor="#8C4510" Font-Size="Medium"
Width="20%" HorizontalAlign="Center"/>
</asp:DataList>
</div>
</asp:Content>

